home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Disc to the Future 2
/
Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin
/
MAC
/
THINKC
/
TCL1
/
__MANDEL
/
MANDELBR
/
CMANDELW.C
< prev
next >
Wrap
Text File
|
1992-05-31
|
1KB
|
40 lines
// CMandelWindow.c
#include <CList.h>
#include "CMandelWindow.h"
#include "CPane.h"
/******************************************************************************
Update
Update the contents of a window
overridden because I didn't want the visRgn erased. flicker is evil.
******************************************************************************/
void CMandelWindow::Update()
{
GrafPtr savePort; /* The current port */
Rect updateRect; /* Bounding box of update region */
GetPort(&savePort); /* Save the original port */
Prepare(); /* Set up Window's port */
BeginUpdate(macPort); /* Start the update process */
/* This restricts the visible area */
/* to just the update region, */
/* meaning that no drawing will */
/* occur outside this region */
ClipRect(&thePort->portRect); /* Clip to the entire window */
if (itsSubviews != NULL) { /* Draw all subviews */
updateRect = (**thePort->visRgn).rgnBBox;
itsSubviews->DoForEach1((EachFunc1) Pane_Draw, (long) &updateRect);
}
EndUpdate(macPort); /* End the update process */
SetPort(savePort); /* Restore the original port */
ForceNextPrepare();
}